package com.mac.macjetpackdemo.view

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.View
import com.mac.macjetpackdemo.log

class CView(context: Context?, attrs: AttributeSet?) : View(context, attrs) {
    private val TAG = "CView.."

    override fun dispatchTouchEvent(event: MotionEvent?): Boolean {
        log(TAG + "dispatchTouchEvent ${event.hashCode()}")
        return super.dispatchTouchEvent(event)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        log(TAG + "onTouchEvent ${event.hashCode()}")
        Log.w(TAG, "onTouchEvent: ")

        Log.wtf(TAG, "onTouchEvent: " )
        return true
    }
}